# 6.7
people = []                             # 创建一个名为people的空列表
person = {                              # 创建一个名为person的字典
    'first_name':'zhang',
    'last_name':'san',
    'age':18,
    'city':'xian'
}
people.append(person)                   # 将字典添加的列表中
person = {
    'first_name':'li',
    'last_name':'si',
    'age':21,
    'city':'chongqing'
}
people.append(person)
person = {
    'first_name':'wang',
    'last_name':'wu',
    'age':29,
    'city':'hangzhou'
}
people.append(person)

for person in people:                   # 循环列表中每个字典的信息
    name = (f"{person['first_name'].title()}{person['last_name']}")
    age = (person['age'])
    city = (person['city'])
    print(f"{name}, of {city}, is {age} years old.")
